package com.etalk.web.controller;

import com.etalk.facade.service.ChatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by huangcw on 2016/4/1.
 */
@Controller
@RequestMapping(value = "/chat")
public class ChatController {

    @Autowired
    private ChatService chatService;

    @RequestMapping(value = "/getList")
    public ResponseEntity<String>  getChatPageList(){
        return ResponseEntity.status(HttpStatus.OK).body(chatService.sayHello("吊事成功"));
    }

}
